import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import HomeContainer from '../components/tabbar/HomeContainer.vue'
import Weather from '../components/tabbar/Weather.vue'
import ShopcarContainer from '../components/tabbar/ShopcarContainer.vue'
import SearchContainer from '../components/tabbar/SearchContainer.vue'
import NewList from '../components/news/NewList.vue'
import NewsInfo from '../components/news/NewsInfo.vue'
import photoList from '../components/photos/photoList.vue'
Vue.use(Router)

export default new Router({
  routes: [
		{ path: '/',redirect: '/home'},
    {
      path: '/home',
      name: 'HomeContainer',
      component: HomeContainer
    },
		{
		  path: '/weather',
		  name: 'Weather',
		  component: Weather
		},
		{
		  path: '/car',
		  name: 'ShopcarContainer',
		  component: ShopcarContainer
		},
		{
		  path: '/search',
		  name: 'SearchContainer',
		  component: SearchContainer
		},
		{
			path: '/home/newslist',
			component: NewList
		},
		{
			path: '/home/newsInfo/:id',
			component: NewsInfo
		},
		{
			path: '/home/photoList',
			component: photoList
		}
  ],
	linkActiveClass: 'mui-active'
})
